import { createApp } from 'vue'
import { createPinia } from 'pinia'
import axiosConfig from './assets/ts/axiosConfig.ts'
import gridLayout from 'vue-grid-layout'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/style/common.less'

import {
    Document,
    Place,
    Avatar,
    Notification,
    BellFilled,
    SetUp,
    Right,
    Lock,
    User,
    HomeFilled,
    Printer
} from '@element-plus/icons-vue';

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.use(gridLayout)

app.component('icon-document',Document)
app.component('icon-place',Place)
app.component('icon-avatar',Avatar)
app.component('icon-notification',Notification)
app.component('icon-bellFilled',BellFilled)
app.component('icon-setUp',SetUp)
app.component('icon-right',Right)
app.component('icon_lock',Lock)
app.component('icon_user',User)
app.component('icon-homeFilled',HomeFilled)
app.component('icon-printer',Printer)

app.mount('#app')
